const sequel= require('../../config/sequelize');
const Sequelize = require('sequelize');

const ManufacturerDeal = sequel.define('manufacturerDeal', {
    treesId: { // 相关荔枝树，为数组
        type: Sequelize.STRING(100),
        field: 'manufacturerName'
    },
    pickingTreatment: {
        type: Sequelize.STRING(100),
        field: 'pickingTreatment'
    },
    totalAmount: {
        type: Sequelize.BIGINT,
        field: 'totalAmount'
    },
    dealersId: {
        type: Sequelize.STRING(100),
        field: 'dealersId'
    },
    price: {
        type: Sequelize.STRING(20),
        field: 'price'
    },
    manufacturerDealUnit: {
        type: Sequelize.STRING(20),
        field: 'manufacturerDealUnit'
    },
});

module.exports = ManufacturerDeal;